<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>129-css-3d基本使用.html</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		.father{
			width: 400px;
			height: 400px;
			background-color: blue;
			margin: 50px auto;
			border: 1px solid #000;
			perspective: 500px;
			transform: rotateX(0deg) rotateY(0deg);
			/*transform-style: flat;*/
			transform-style: preserve-3d;
		}
		.son{
			width: 200px;
			height: 200px;
			margin: 100px auto;
			background-color: skyblue;
			transform: rotateY(60deg);
		}
	</style>
</head>
<body>
	<div class="father">
		<div class="son"></div>
	</div>
</body>
</html>